package com.k7.mobile.platform.dataobject;

import java.util.Date;

import com.k7.mobile.platform.dataobject.BaseDO;
import com.k7.mobile.platform.web.support.RedisConstants;

/**
 * 游戏表(cmstop_sj_gram)
 * 
 * @author nandi.ldl
 * @version  GramDO.java 2013-4-16 10:57:48
 * 
 */
public class GramDO extends BaseDO  {

	private static final long serialVersionUID = 1L;
	
	private Long id; //自增ID
	private String vname; //游戏名称
	private String latter; //游戏名称首字母
	private String envName; //英文名称
	private String code; //游戏编号
	private Double money; //游戏价格
	private String size; //游戏大小
	private Integer btype; //游戏大类
	private String firstStype; //第一个类型ID
	private String stype; //游戏小类ID以,号分隔开
	private String icon; //游戏小图表
	private String develop; //关联开发商ID
	private String sysVersion; //系统版本要求
	private String contentClass; //内容分级
	private String androidPower; //安卓权限ID
	private String payType; //付费方式0免费 其他为付费方式ID以逗号分隔
	private String version; //版本号
	private String versionMsg; //版本信息
	private Integer language; //游戏语言ID
	private Integer score; //总评分
	private Double average; //平均分
	private String tag; //标签 用逗号分隔开
	private Integer downNum; //总下载次数
	private Integer plNum; //总评论次数
	private Integer seeNum; //浏览次数
	private Date ctime; //添加时间
	private Date cdate; //添加日期
	private Date sdate; //上架日期
	private Date utime; //更新时间
	private Short otherImg; //官方图片数量
	private Short myImg; //上传图片数量
	private Short myVideo; //视频数量
	private Short downUrl; //下地址数量
	private Short entryType; //录入类型0手工录入1官方抓取2第三方3开发商
	private String content; //游戏内容
	private String uid; //添加人ID
	private String addUser; //添加人帐号
	private String edtUid; //修改人ID
	private String edtUser; //修改人帐号


	private Integer rankingDownNum;//按照周排行或月排行时下载次数
	
	public Integer getRankingDownNum() {
		return rankingDownNum;
	}
	public void setRankingDownNum(Integer rankingDownNum) {
		this.rankingDownNum = rankingDownNum;
	}
	
	public Long getId(){
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getVname(){
		return vname;
	}
	public void setVname(String vname) {
		this.vname = vname;
	}
	public String getLatter(){
		return latter;
	}
	public void setLatter(String latter) {
		this.latter = latter;
	}
	public String getEnvName() {
		return envName;
	}
	public void setEnvName(String envName) {
		this.envName = envName;
	}
	public String getCode(){
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Double getMoney(){
		return money;
	}
	public void setMoney(Double money) {
		this.money = money;
	}
	public String getSize(){
		return size;
	}
	public void setSize(String size) {
		this.size = size;
	}
	public Integer getBtype(){
		return btype;
	}
	public void setBtype(Integer btype) {
		this.btype = btype;
	}
	public String getFirstStype(){
		return firstStype;
	}
	public void setFirstStype(String firstStype) {
		this.firstStype = firstStype;
	}
	public String getStype(){
		return stype;
	}
	public void setStype(String stype) {
		this.stype = stype;
	}
	public String getIcon(){
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public String getDevelop(){
		return develop;
	}
	public void setDevelop(String develop) {
		this.develop = develop;
	}
	
	public String getSysVersion() {
		return sysVersion;
	}
	public void setSysVersion(String sysVersion) {
		this.sysVersion = sysVersion;
	}
	public String getContentClass(){
		return contentClass;
	}
	public void setContentClass(String contentClass) {
		this.contentClass = contentClass;
	}
	
	public String getVersion(){
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public String getVersionMsg(){
		return versionMsg;
	}
	public void setVersionMsg(String versionMsg) {
		this.versionMsg = versionMsg;
	}
	public Integer getLanguage(){
		return language;
	}
	public void setLanguage(Integer language) {
		this.language = language;
	}
	public Integer getScore(){
		return score;
	}
	public void setScore(Integer score) {
		this.score = score;
	}
	public Double getAverage(){
		return average;
	}
	public void setAverage(Double average) {
		this.average = average;
	}
	public String getTag(){
		return tag;
	}
	public void setTag(String tag) {
		this.tag = tag;
	}
	public Integer getDownNum(){
		return downNum;
	}
	public void setDownNum(Integer downNum) {
		this.downNum = downNum;
	}
	public Integer getPlNum(){
		return plNum;
	}
	public void setPlNum(Integer plNum) {
		this.plNum = plNum;
	}
	public Integer getSeeNum(){
		return seeNum;
	}
	public void setSeeNum(Integer seeNum) {
		this.seeNum = seeNum;
	}
	public Date getCtime(){
		return ctime;
	}
	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}
	public Date getCdate(){
		return cdate;
	}
	public void setCdate(Date cdate) {
		this.cdate = cdate;
	}
	public Date getSdate(){
		return sdate;
	}
	public void setSdate(Date sdate) {
		this.sdate = sdate;
	}
	public Date getUtime(){
		return utime;
	}
	public void setUtime(Date utime) {
		this.utime = utime;
	}
	
	
	public Short getOtherImg() {
		return otherImg;
	}
	public void setOtherImg(Short otherImg) {
		this.otherImg = otherImg;
	}
	public String getContent(){
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getUid(){
		return uid;
	}
	public void setUid(String uid) {
		this.uid = uid;
	}
	public String getAndroidPower() {
		return androidPower;
	}
	public void setAndroidPower(String androidPower) {
		this.androidPower = androidPower;
	}
	public String getPayType() {
		return payType;
	}
	public void setPayType(String payType) {
		this.payType = payType;
	}
	public Short getMyImg() {
		return myImg;
	}
	public void setMyImg(Short myImg) {
		this.myImg = myImg;
	}
	public Short getMyVideo() {
		return myVideo;
	}
	public void setMyVideo(Short myVideo) {
		this.myVideo = myVideo;
	}
	public Short getDownUrl() {
		return downUrl;
	}
	public void setDownUrl(Short downUrl) {
		this.downUrl = downUrl;
	}
	public Short getEntryType() {
		return entryType;
	}
	public void setEntryType(Short entryType) {
		this.entryType = entryType;
	}
	public String getAddUser() {
		return addUser;
	}
	public void setAddUser(String addUser) {
		this.addUser = addUser;
	}
	public String getEdtUid() {
		return edtUid;
	}
	public void setEdtUid(String edtUid) {
		this.edtUid = edtUid;
	}
	public String getEdtUser() {
		return edtUser;
	}
	public void setEdtUser(String edtUser) {
		this.edtUser = edtUser;
	}
	@Override
	public String genCacheKey() {
		return this.getId() + RedisConstants.DEFAULT_CACHE_FIELD_SEPARATOR+ 
				this.getBtype() + RedisConstants.DEFAULT_CACHE_FIELD_SEPARATOR+ 
				this.getLatter() + RedisConstants.DEFAULT_CACHE_FIELD_SEPARATOR+ 
				this.getLanguage() + RedisConstants.DEFAULT_CACHE_FIELD_SEPARATOR+ 
				this.getStype() + RedisConstants.DEFAULT_CACHE_FIELD_SEPARATOR+ 
				this.getDevelop() + RedisConstants.DEFAULT_CACHE_FIELD_SEPARATOR+ 
				this.getPerPageSize() + RedisConstants.DEFAULT_CACHE_FIELD_SEPARATOR+ 
				this.getOrderCacheStr() + RedisConstants.DEFAULT_CACHE_FIELD_SEPARATOR+ 
				this.getToPage();
	}
}
